package cn.itcast.dao.company;

import cn.itcast.domain.compony.Company;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompanyDao {
    List<Company> findAll();
    Company findById(String id);
    void save(Company company);
    void update(Company company);
    void deleteById(String id);

    long findTotal();

    List<Company> findByPage(@Param("begin") int begin, @Param("size") int size);
}
